<template>
  <div>
    <h3>Item组件</h3>
    <p v-if="paramsId === '001'">英雄联盟</p>
    <p v-if="paramsId === '002'">穿越火线</p>
    <p v-if="paramsId === '003'">逆战</p>
    <p>id:{{ id }}---title:{{ title }}---age:{{ age }}---a:{{ a }}</p>
  </div>
</template>
<script>
export default {
  name: 'Item',
  data() {
    return {
      paramsId: '',
    };
  },
  props: ['id', 'title', 'age', 'a'],
  mounted() {
    console.log(this);
  },
};
</script>
<style></style>
